#include "StdAfx.h"
#include "WnEvent.h"
#include "WnScopedLock.h"

CWnEvent::CWnEvent(void)
{
}

CWnEvent::~CWnEvent(void)
{
}

void CWnEvent::wait()
{
  CWnScopedLock scoped_lock(m_lock);
  m_condition.wait(scoped_lock);  
}

void CWnEvent::notify_one()
{
  m_condition.notify_one();
}

void CWnEvent::notify_all()
{
  m_condition.notify_all ();
}
